package models

// 已开票充电订单记录
type IvsOrderList struct {
	Orderno *string `gorm:"column:orderno;primarykey"` // 订单编号
	TenantId *uint64 `gorm:"column:tenant_id"` // 租户id
	Shopid *uint64 `gorm:"column:shopid"` // 店铺id
	StationId *uint64 `gorm:"column:station_id"` // 站场id
	CustId *uint64 `gorm:"column:cust_id"` // 用户id
	ShopName *string `gorm:"column:shop_name"` // 店铺名称
	StationName *string `gorm:"column:station_name"` // 站场名称
	Ordertime *jsontime.JsonTime `gorm:"column:ordertime"` // 充电时间
	ChargingDl *float64 `gorm:"column:charging_dl"` // 充电量
	ChargingAmount *float64 `gorm:"column:charging_amount"` // 可开票电费
	ServicesAmount *float64 `gorm:"column:services_amount"` // 可开票服务费
	TotalAmount *float64 `gorm:"column:total_amount"` // 可开票总金额
	PayChargingAmount *float64 `gorm:"column:pay_charging_amount"` // 订单付款电费
	PayServicesAmount *float64 `gorm:"column:pay_services_amount"` // 订单付款服务费
	PayTotalAmount *float64 `gorm:"column:pay_total_amount"` // 订单付款总金额
	InvoiceStatus *uint8 `gorm:"column:invoice_status"` // 开票状态 1.未开票,2.开票中,3.已开票,4.开票失败
	InvoiceId *uint64 `gorm:"column:invoice_id"` // 发票id
	CreatedTime *jsontime.JsonTime `gorm:"column:created_time"` 
	UpdatedTime *jsontime.JsonTime `gorm:"column:updated_time"` // 更新时间
}
func (entity *IvsOrderList) TableName() string {
	return "ivs_order_list"
}